package com.study.demo.aop.demo1_2.operation;

/**
 * @author: elvin
 * @time: 2019-10-16 15:22
 * @desc:
 **/
public class LogableOperation extends LogOperation {

    private final String unless;

    public LogableOperation(Builder b) {
        super(b);
        this.unless = b.unless;
    }

    public String getUnless() {
        return unless;
    }

    public static class Builder extends LogOperation.Builder{
        private  String unless = "";

        public String getUnless() {
            return unless;
        }

        public void setUnless(String unless) {
            this.unless = unless;
        }

        @Override
        public LogOperation build() {
            return new LogableOperation(this);
        }
    }
}
